//package com.kexuexiong.demo.bearBaseService.controller.hadoop;
//
//
//import bio.nvwa.boot.hdfs.HdfsService;
//import com.kexuexiong.demo.common.dto.Result;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.hadoop.fs.Path;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//@Api(tags = {"hadoop"})
//@RestController
//@RequestMapping("/hadoop")
//@Slf4j
//public class HadoopController {
//
//    @Autowired
//    private HdfsService hdfsService;
//
//
//    /**
//     * hadoop测试
//     *
//     * @return
//     */
//    @ApiImplicitParams({@ApiImplicitParam(name = "name", value = "没有")})
//    @ApiOperation(value = "hadoop", notes = "hadoop测试")
//    @RequestMapping(value = "/index", method = {RequestMethod.GET})
//    public Result<String> index() throws Exception {
//        Path path = new Path("/user/root","kexuexiong");
//        hdfsService.mkdirs(path);
//        return Result.success("hadoop test");
//    }
//}
